package tech.moya.flexbase.business
{
	import flash.data.SQLConnection;
	import flash.data.SQLSchemaResult;
	
	import tech.moya.flexbase.core.BaseContext;
	
	public class DBFacade
	{
		public static function getAllTables(cxt:BaseContext):Array{
			var conn:SQLConnection = cxt.openConnection();
			conn.loadSchema();
			var schemaResult:SQLSchemaResult = conn.getSchemaResult();
			return schemaResult.tables;
		}
	}
}